.ant-select-dropdown-menu {
  &::-webkit-scrollbar {
    width: 4px !important;
  }
  &::-webkit-scrollbar-thumb {
    width: 4px;
    background-color: rgb(201, 205, 212) !important;
    border-radius: 2px;
  }
  &::-webkit-scrollbar-track {
    background-color: #fff;
  }
}
.ant-input-affix-wrapper {
  &:hover {
    .ant-input, .ant-input-lg {
      box-shadow: none;
      border-color: var(--primary-color) !important;
    }
  }
}
.ant-input, .ant-input-lg {
  font-size: 14px;
  border-radius: 2px;
  &:hover, &:focus {
    box-shadow: none;
    border-color: var(--primary-color);
  }
  &.ant-input-disabled {
    color: #4c4c4c;
    &:hover, &:focus {
      border-color: transparent !important;
    }
  }
}
.ant-radio-wrapper {
  .ant-radio {
    .ant-radio-inner {
      width: 14px;
      height: 14px;
      &::after {
        width: 6px;
        height: 6px;
      }
    }
  }
}

.ant-checkbox {
  .ant-checkbox-inner {
    width: 14px;
    height: 14px;
    &::after {
      width: 4.614286px;
      height: 7.142857px;
    }
  }
  & + span {
    padding: 0 4px;
    font-size: 12px;
  }
}

.ant-select {
  &-focused {
    .ant-select-selection {
      border-color: var(--primary-color) !important;
    }
  }

  &-selection {
    border-radius: 2px;
    box-shadow: none !important;
    &:active, &:focus, &:hover {
      border-color: var(--primary-color) !important;
    }
    .ant-select-selection__choice {
      background-color: #e8f3ff;
      border: none;
      .ant-select-selection__choice__content {
        color: #1d7dfa;
        font-size: 12px;
      }
      .ant-select-selection__choice__remove {
        color: #1d7dfa;
      }
    }
  }
}

.ant-modal-body {
  .ant-modal-confirm-body {
    .ant-modal-confirm-title {
      font-size: 17px;
      font-weight: 600;
    }
    .anticon {
      position: relative;
      top: 3px;
      font-size: 18px;
      margin-right: 8px;
    }
    .ant-modal-confirm-content {
      font-size: 14px;
      color: #4c4c4c;
      margin-left: 28px !important;
    }
  }
}

.avatar-uploader > .ant-upload {
  width: 128px;
  height: 128px;
}
.avatar-uploader > .ant-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ant-upload-select-picture-card i {
  font-size: 32px;
  color: #999;
}
.ant-upload-select-picture-card .ant-upload-text {
  margin-top: 8px;
  color: #666;
}


.ant-select-dropdown--multiple {
  .ant-select-dropdown-menu-item-selected {
    color: #1890ff !important;
  }
}

.ant-btn {
  padding: 0 16px;
  font-size: 12px;
  line-height: 30px;
  height: 32px;
  border-radius: 3px;
  &:not(&-danger) {
    &:hover, &:focus {
      border-color: var(--primary-color);
      color: var(--primary-color);
    }
  }
  &-primary {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    span {
      font-size: 12px;
      color: #fff;
    }
    &:focus,
    &:hover {
      background-color: var(--hover-primary-color) !important;
      border: 1px solid var(--hover-primary-color) !important;
    }
    &:disabled,
    &.ant-btn-loading {
      background-color: var(--primary-color);
      border: 1px solid var(--primary-color);
      cursor: not-allowed;
      opacity: 0.5;
    }
    &.ant-btn-loading {
      .anticon-loading {
        color: #fff;
      }
    }
    .anticon {
      color: #fff;
    }
  }

  &-dashed {
    border: 1px solid #80dd9a !important;
    color: var(--primary-color) !important;
    background: #19c54a1a !important;
    span {
      font-size: 12px;
    }
    .anticon {
      position: relative;
      & + span {
        margin-left: 6px;
      }
    }
  }
  &-link {
    border: none;
    color: var(--primary-color);
  }
}

.ant-popover-inner-content {
  padding: 0;
  .cover-image-popover {
    padding: 12px 0;
    & > div {
      &:not(:last-child) {
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f1f1;
      }
      &:not(:first-child) {
        padding-top: 10px;
      }
      p {
        line-height: 32px;
        font-size: 13px;
        cursor: pointer;
        transition: 0.2s;
        a {
          padding: 0 50px 0 16px;
          color: #4c4c4c;
          display: block;
        }
        &:hover {
          background: rgb(248, 248, 248);
        }
        &:active {
          opacity: 0.6;
        }
        i {
          margin-right: 8px;
          font-size: 16px;
          color: #4c4c4c;
        }
        &.pad-ing {
          padding: 0 50px 0 16px;
        }
      }
      &.small-icon {
        p {
          position: relative;
          padding-left: 12px;
          i {
            font-size: 16px;
            display: none;
          }
          em {
            position: absolute;
            top: 50%;
            right: 16px;
            transform: translateY(-50%);
            font-style: normal;
          }
        }
      }
    }
  }
}

.ant-skeleton-avatar {
  margin-top: 10px;
}

.ant-dropdown {
  min-width: 180px;
  .code-highlight-stylelist {
    .ant-dropdown-menu-item-group {
      &-title {
        border-bottom: 1px solid #f1f1f1;
      }
      &-list {
        margin: 0;
        max-height: 200px;
        overflow-y: scroll;
        padding-top: 4px;
        li {
          width: 190px;
          display: flex;
          align-items: center;
          p {
            flex: 1;
            width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            padding-right: 6px;
          }
          i {
            flex-shrink: 0;
            color: #2080f7;
            display: none;
          }
          &.active {
            background-color: #e6f7ff;
            i {
              display: inline-block;
            }
          }
        }
        &::-webkit-scrollbar {
          width: 4px !important;
          display: none;
        }
        &::-webkit-scrollbar-thumb {
          width: 4px;
          background-color: rgb(201, 205, 212) !important;
          border-radius: 2px;
        }
        &::-webkit-scrollbar-track {
          background-color: #fff;
        }
      }
    }
  }
}

.ant-spin {
  .ant-spin-text {
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 4px;
  }
}

.custom-dropdown {
  min-width: 112px;
  p {
    font-size: 12px;
  }
  a {
    font-size: 12px;
  }
}